home *** CD-ROM | disk | FTP | other *** search
- <?php
- $sender = $HTTP_POST_VARS["name"];
- $fmtResponse= implode("", file("http://www.amigaplus.de/news/newsresponse.html"));
- $fmtMail= implode("", file("http://www.amigaplus.de/news/newsresults.htt"));
- foreach($HTTP_POST_VARS as $key=> $val) {
- $fmtResponse= str_replace("<$key>", $val, $fmtResponse);
- $fmtMail= str_replace("<$key>", $val, $fmtMail);
- }
- mail($HTTP_POST_VARS["recipient"], $HTTP_POST_VARS["subject"], $fmtMail, "From: $sender\nX-Mailer: Feedback");
- echo $fmtResponse;
- ?>